package zz.app.ustbgsmanager.beans.querycourse;

/**
 * Created by zz on 2018/6/7 20:39.
 */
public class CourseInfo{
    private int time;
    private String name;
    private String where;
    private String when;
    private String who;
    private String detail;

    public String getWhen() {
        return when;
    }

    public void setWhen(String when) {
        this.when = when;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public int getStartWeek() {
        String s=when.split("-")[0];
        return Integer.parseInt(s.substring(1,s.length()));

    }
    public int getEndWeek(){
        String s=when.split("-")[1];
        return Integer.parseInt(s.substring(0,s.length()-1));
    }
}